﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Store/StoreMastePage.Master" AutoEventWireup="true" CodeBehind="ViewDisbursementListDET.aspx.cs" Inherits="logicunivesityinventorystore.Store.ViewDisbursementListDET" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../js/ModelPopUp.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <h1>View Disbursement List</h1>
         <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <br />
        <br />
         <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
    <asp:Label ID="lbDisbursement" runat="server" Text="Disbursement List:"></asp:Label>
    <br />
    <center>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Height="1px" 
                        Width="1px" BackColor="White" />
        <asp:GridView ID="gdDisbursementList" runat="server" 
            AutoGenerateColumns="False" DataKeyNames="DepartmentName" 
            DataSourceID="ObjectDataSource1" 
            onrowcommand="gdDisbursementList_RowCommand" 
            onrowdatabound="gdDisbursementList_RowDataBound">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="cbCollected" runat="server" 
                             />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Disbursement No.">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnDisNo" runat="server"  
                            Text='<%# Eval("DisbursementNo") %>' ></asp:LinkButton>
                             <cc1:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="modalBackground"
                runat="server" CancelControlID="btnCancel" OkControlID="btnOkay" TargetControlID="lbtnDisNo"
                PopupControlID="Panel1" Drag="true" PopupDragHandleControlID="PopupHeader" OnOkScript="NewExpanseOkay();" BehaviorID="EditModalPopup">
            </cc1:ModalPopupExtender>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DepartmentName" HeaderText="Department Name" />
                <asp:TemplateField HeaderText="Status">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnUncollected" runat="server" 
                            CommandArgument='<%# Eval("DisbursementNo") %>' CommandName="Selected">Uncollected</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="FindDisbursementList" 
            TypeName="BusinessLogicLayer.RetrivalListFacade">
            <SelectParameters>
                <asp:SessionParameter Name="clerkID" SessionField="UserName" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </center>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnCollected" runat="server" CssClass="ButtonStyle" 
            Text="Collected" onclick="btnCollected_Click" />
                    <cc1:ConfirmButtonExtender ID="btnCollected_ConfirmButtonExtender" 
                        runat="server" ConfirmText="Do you want to proceed?(Remind:Disbursement details should be updated!)" Enabled="True" TargetControlID="btnCollected">
                    </cc1:ConfirmButtonExtender>
        <br />
        <div class="popup_Buttons" style="display: none">
                
                 <input id="btnOkay" value="Done" type="button" />
                <input id="btnCancel" value="Cancel" type="button" />
            </div>
            <div id="Panel1" style="display: none; width:700px;" class="modalPopup">
                <iframe id="frameeditexpanse" frameborder="0" src="" height="270" scrolling="auto" width="700"; 
                    ></iframe>
            </div>
           
     
    </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
            </asp:Content>

<asp:Content ID="Content3" runat="server" 
    contentplaceholderid="ContentPlaceHolder4">
            
                </asp:Content>
<asp:Content ID="Content4" runat="server" 
    contentplaceholderid="ContentPlaceHolder5">
              
                </asp:Content>
<asp:Content ID="Content5" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
               
                </asp:Content>
<asp:Content ID="Content6" runat="server" 
    contentplaceholderid="ContentPlaceHolder6">
             
                </asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="ContentPlaceHolder7">

		          
                </asp:Content>


